//
//  AVRequest+Relation.h
//  项目三
//
//  Created by rimi1 on 2016/12/10.
//  Copyright © 2016年 Wangxingqian. All rights reserved.
//

#import "AVRequest.h"

@interface AVRequest (Relation)

// 返回个人作品(动态)
+ (void)avDynamicWithObj:(AVObject *)obj
                   query:(QueryArr)queryBlock;
// 返回收藏
+ (void)avCollcetWithObj:(AVObject *)obj
                   query:(QueryArr)queryBlock;

@end

@interface AVRequest (Collect)
// 查询用户是否收藏，系统的菜谱
+ (void)avIsCollectWithMenuId:(NSString *)menuId
                        query:(QueryArr)queryBlock;
// 查询用户是否收藏，用户的作品(其他用户动态)
+ (void)avIsPersonalCollectWithObj:(AVObject *)obj
                            objArr:(QueryArr)objArr;
// 删除收藏系统菜谱
+ (void)avRemoveCollectWithMenuId:(NSString *)menuId
                    removeSucceed:(AVSucceed)removeSucceed;
// 删除收藏用户菜谱
+ (void)avRemoveCollectWithObj:(AVObject *)obj
                 removeSucceed:(AVSucceed)removeSucceed;
// 添加收藏 isSystem:0是系统，1是用户发的  menuId:系统的记菜谱ID，用户的记ObjectId(LeanCloud唯一标识符)
+ (void)avAddCollectWithDynamicObj:(AVObject *)dynamicObj
                            menuId:(NSString *)menuId
                              name:(NSString *)name
                              food:(NSString *)food
                               img:(NSString *)img
                        addSucceed:(AVSucceed)addSucceed;
// 上传菜谱
+ (void)avEditWithName:(NSString *)name
                  food:(NSString *)food
                  step:(NSString *)step
                   img:(NSData *)img
               sueeccd:(AVSucceed)editSueeccd;

@end

@interface AVRequest (Dynamic)
// 查询动态
+ (void)avDynamicWithPage:(NSInteger)page
                    Query:(QueryArr)queryBlock;
// 查询关注好友的动态
+ (void)avConcernDynamicWithPage:(NSInteger)page
                           Query:(QueryArr)queryBlock;


@end













